var express = require('express');
var router = express.Router();

/* GET users listing. */
router.get('/', function (req, res, next) {
    res.send({
        code: 200,
        message: 'success',
        data: {
            list: [{
                id: 0,
                menuName: '系统管理',
                icon: 'Tools',
                menuKey: '',
                menuSort: 1,
                status: 1,
                component: '',
                createTime: '2022-06-26 00:00:00',
                children: [
                    {
                        id: 1,
                        menuName: '菜单管理',
                        icon: 'Menu',
                        menuKey: 'menu:manger:list',
                        menuSort: 1,
                        status: 1,
                        component: '/system/menu/index',
                        createTime: '2022-06-26 00:00:00',
                        children: [
                            {
                                id: 2,
                                menuName: '新增菜单',
                                icon: '',
                                menuKey: 'menu:operation:add',
                                menuSort: 1,
                                status: 1,
                                component: '',
                                createTime: '2022-06-26 00:00:00'
                            }
                        ]
                    },
                    {
                        id: 3,
                        menuName: '用户管理',
                        icon: 'Avatar',
                        menuKey: 'user:manger:list',
                        menuSort: 2,
                        status: 1,
                        component: '/system/user/index',
                        createTime: '2022-06-26 00:00:00',
                        children: [
                            {
                                id: 4,
                                menuName: '新增用户',
                                icon: '',
                                menuKey: 'user:operation:add',
                                menuSort: 1,
                                status: 1,
                                component: '',
                                createTime: '2022-06-26 00:00:00'
                            }
                        ]
                    },
                    {
                        id: 5,
                        menuName: '角色管理',
                        icon: 'User',
                        menuKey: 'role:manger:list',
                        menuSort: 3,
                        status: 1,
                        component: '/system/role/index',
                        createTime: '2022-06-26 00:00:00',
                        children: [
                            {
                                id: 6,
                                menuName: '新增角色',
                                icon: '',
                                menuKey: 'role:operation:add',
                                menuSort: 1,
                                status: 1,
                                component: '',
                                createTime: '2022-06-26 00:00:00'
                            }
                        ]
                    },
                    {
                        id: 7,
                        menuName: '支付管理',
                        icon: 'Tickets',
                        menuKey: '',
                        menuSort: 4,
                        status: 1,
                        component: '',
                        createTime: '2022-06-26 00:00:00',
                        children: [
                            {
                                id: 8,
                                menuName: '支付列表',
                                icon: '',
                                menuKey: 'pay:manger:list',
                                menuSort: 1,
                                status: 1,
                                component: '/paymentManagement/pay',
                                createTime: '2022-06-26 00:00:00',
                                children: [
                                    {
                                        id: 9,
                                        menuName: '新增支付',
                                        icon: '',
                                        menuKey: 'pay:operation:add',
                                        menuSort: 1,
                                        status: 1,
                                        component: '',
                                        createTime: '2022-06-26 00:00:00'
                                    }
                                ]
                            }
                        ]
                    }
                ]
            },
            ],
            total: 10
        }
    });

});

module.exports = router;
